package com.sc.nft.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
public class AddSysMemberRequest {


    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String userAccount;


    @ApiModelProperty("用户角色")
    @NotNull(message = "请选择角色")
    private Long roleId;

    @ApiModelProperty("用户头像")
    private String  userPic;

    @ApiModelProperty("用户姓名")
    @NotBlank(message = "姓名不能为空")
    private String userName;


    @ApiModelProperty("性别")
    private Integer userSex;


    @ApiModelProperty("出生年月日")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userBirthday;


    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("密码")
    @NotBlank(message = "用户密码不能为空")
    private String pwd;


}
